home *** CD-ROM | disk | FTP | other *** search
/ Best of Shareware / Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso / mac / DOS / UTILITY / SPC3 / SPC.DOC < prev    next >
Text File  |  1992-08-20  |  19KB  |  798 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.                                        LiteSPC
  33.  
  34.                                      VERSION 3.0
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.           1  INTRODUCTION
  42.  
  43.  
  44.           We originally designed LiteSPC, or just SPC, for use with modern
  45.           telephone systems. Some modern phone systems can report call-
  46.           related information to a serial port. This capability is
  47.           important to organizations that charge for telephone usage or
  48.           monitor telephone usage.
  49.  
  50.           In many cases, a dedicated printer records the information as the
  51.           telephone system produces it. Company personnel scan the reports
  52.           at a later time to develop billing or usage information. This is
  53.           particularly true of smaller hotels, motels and inns. But the
  54.           approach is not without problems.
  55.  
  56.           The transcription of the printed material is time-consuming.
  57.           Under some circumstances, the information is not available
  58.           quickly enough to insure accuracy. That is why some lodging
  59.           establishments have to ask whether you made telephone call just
  60.           before checking-out; they have to rely on your honesty. And, to
  61.           be sure, any operation that is labor-intensive is expensive.
  62.           Finally, the transcription may introduce errors. Think of the
  63.           last time your room bill included phone charges for calls you
  64.           never made. Or think of the last time your department was
  65.           cautioned about abuse of company telephones, when no abuse
  66.           existed.
  67.  
  68.           This is where SPC can be value. SPC runs as a Terminate and Stay
  69.           Resident (TSR) program. It dutifully records, on the computers
  70.           disk, any information that arrives at the system's serial port.
  71.           The same information is instantly available for billing or
  72.           analysis purposes. And all of this without human intervention or
  73.           transcription errors.
  74.  
  75.           Since its introduction, SPC has been used for applications beyond
  76.           its original purpose. A host of devices beyond telephone systems
  77.           produce information in serial form. These devices can be found in
  78.           all types of environments ranging from the office to the
  79.           manufacturing floor. And for good reason. Engineers have
  80.           recognized that information of all types is a useful by-product
  81.           of many other functions. Implementing the capture of this
  82.           information with a serial device is inexpensive and a product
  83.           salable feature.
  84.  
  85.           For example, picture a modern production line. The finished
  86.           product moves on a conveyer to a scale that weighs the product.
  87.           If the scale detects an underweight or overweight product, it
  88.           sends information by a serial link warning of the condition. If
  89.           the product is within normal limits, a different serial message
  90.           is sent. Products that are not within the normal weight profile
  91.           are automatically removed from the line. Products that pass
  92.           successfully are branded with the correct weight for shipping
  93.           purposes.
  94.  
  95.  
  96.                                  LiteSPC Version 3.0
  97.  
  98.  
  99.  
  100.           This scenario is not imaginary. One SPC user has implemented just
  101.           such a system for a client company. And the 'branding' machine
  102.           also produces serial information that is recorded by a second
  103.           copy of SPC. The changes that have gone into SPC version 3 are
  104.           the results of feedback received from that user.
  105.  
  106.  
  107.           2  FEATURES OF LiteSPC 3.0
  108.  
  109.  
  110.           The original version of SPC could monitor a single serial port.
  111.           Thanks to some custom modifications that we made, we were able to
  112.           run a second, independent copy of SPC for the user we mentioned
  113.           above. But this approach took too much valuable system memory.
  114.           SPC version 1 required approximately 25 KB of memory to run. The
  115.           customized version took exactly twice that amount of memory when
  116.           both copies were running.
  117.  
  118.           SPC version 3 remedies this situation. Version 3 can monitor and
  119.           record information from both COM1 and COM2 simultaneously. The
  120.           information is stored in two independent log files for later use.
  121.           SPC accomplishes this in somewhat less than 28 KB. And version 3
  122.           fully supports the 16550 UART. If your system uses this type of
  123.           device, SPC will automatically recognize and activate it. The
  124.           result will be less likelihood of lost data, particularly at
  125.           higher baud rates.
  126.  
  127.           And since some software still relies on the existence of a CTRL-Z
  128.           character to mark the end of a text file, SPC always places a
  129.           CTRL-Z at the end of its log files.
  130.  
  131.               o  It is highly configurable by the user.
  132.  
  133.               o  It can use either hardware or software flow control.
  134.  
  135.               o  It can run in a network environment.
  136.  
  137.               o  And most important of all, it does all of this while you
  138.                  continue to use your system for other purposes.
  139.  
  140.           Think about it. Now you can capture that valuable information
  141.           without the cost, time, and problems associated with
  142.           transcription. And SPC can provide an easy link to other
  143.           applications, written in any language, that can read a file but
  144.           don't have communications capability.  SPC's uses are limited
  145.           only by your imagination.
  146.  
  147.  
  148.           3  INSTALLING SPC
  149.  
  150.  
  151.           A successful implementation of LiteSPC consists of copying the
  152.           SPC.EXE file into an appropriate subdirectory using the DOS COPY
  153.           command. And before using SPC, you must create a configuration
  154.  
  155.  
  156.  
  157.               Copyright (c) 1991-1992, Information Technology, Ltd.   2
  158.  
  159.  
  160.                                  LiteSPC Version 3.0
  161.  
  162.  
  163.  
  164.           file using any standard ASCII text editor; but more about this
  165.           later. That's all there is to it. SPC will be ready for use
  166.           before you know it.
  167.  
  168.  
  169.           4  CREATING THE CONFIGURATION FILE
  170.  
  171.  
  172.           SPC, when loading, will attempt to open and read a file called
  173.           SPC.CFG. The information in SPC.CFG determines how SPC will
  174.           function once it is loaded.
  175.  
  176.           You create the configuration file using any ASCII text editor.
  177.           The parameters are simple to understand and to use. We have
  178.           reproduced, in figure 1, the sample configuration file
  179.           distributed with SPC.
  180.  
  181.                          PORT=2
  182.                          Log=spm2.log
  183.                          baud=2400
  184.                          parity=n
  185.                          eor=^M^J
  186.                          PORT=1
  187.                          Log=spm1.log
  188.                          baud=2400
  189.                          parity=n
  190.                          eor=^M^J
  191.                          Figure 1: Sample SPC.CFG parameters
  192.  
  193.           Each parameter consists of a keyword followed by an '=' sign,
  194.           followed by the value of the parameter itself. All parameters
  195.           must conform to the same general set of rules, summarized in the
  196.           table below.
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.               Copyright (c) 1991-1992, Information Technology, Ltd.   3
  222.  
  223.  
  224.                                  LiteSPC Version 3.0
  225.  
  226.  
  227.  
  228.                               Table 1: Parameter Rules
  229.  
  230.               o  You may use only 1 parameter to a line, and the parameter
  231.                  must be complete on that line.
  232.  
  233.               o  Keywords may be in either lower or upper case, or in mixed
  234.                  case.
  235.  
  236.               o  The use of spaces before and after the equal sign are
  237.                  optional and may improve readability.
  238.  
  239.               o  You may not embed spaces in either the keywords, or in the
  240.                  parameter values.
  241.  
  242.               o  The sequence of parameters in unimportant, with the
  243.                  exception of the PORT parameter. SPC assumes that the
  244.                  parameter values encountered apply to the most recently
  245.                  defined port. Therefore the first parameter in SPC.CFG
  246.                  must be a PORT parameter.
  247.  
  248.               o  You only need define parameters for a single port if you
  249.                  application requires a single port. Unless defined in the
  250.                  configuration file, a port will NOT be used by SPC.
  251.  
  252.  
  253.           5  PARAMETER VALUES
  254.  
  255.  
  256.           It is important that you understand each of the parameters and
  257.           how they are used. For the most part, their usage is
  258.           straightforward.
  259.  
  260.           PORT-     The PORT parameter must precede the parameters for that
  261.                     port, and must be the first parameter SPC encounters.
  262.                     PORT may have a parameter value of either 1 or 2. The
  263.                     port parameter remains in effect until the next PORT
  264.                     parameter is encountered.
  265.  
  266.           BAUD-     The BAUD parameter specifies the baud rate at which the
  267.                     currently defined port will run. Any numeric value is
  268.                     acceptable, although the most common baud rates are
  269.                     300, 600, 1200, 2400, 4800, 9600, 19200, 38400, and
  270.                     57600. We cannot guarantee proper operation of SPC at
  271.                     baud rates above 57600 unless your system uses the
  272.                     16550 UART.  See the notes and warnings section below.
  273.  
  274.           PARITY-   Valid values for the PARITY parameter are N(No Parity),
  275.                     E(Even Parity), O(Odd Parity), M(Mark Parity), and
  276.                     S(Space Parity). Please note that there is no
  277.                     specification for DATABITS. SPC automatically
  278.                     configures the number of data bits based upon the
  279.                     PARITY parameter, so that the sum of the data bits plus
  280.                     the parity bit always equals 8.
  281.  
  282.  
  283.  
  284.  
  285.               Copyright (c) 1991-1992, Information Technology, Ltd.   4
  286.  
  287.  
  288.                                  LiteSPC Version 3.0
  289.  
  290.  
  291.  
  292.           EOR-      SPC writes data to its log file(s) when either the EOR
  293.                     (end of record) string is encountered, or when its
  294.                     internal buffer fills, whichever occurs first. Even
  295.                     though you specify an EOR string, SPC will never lose
  296.                     information. The EOR parameter simply insures that the
  297.                     log file contains complete records at any point in
  298.                     time.  EOR defaults to a CR-LF (carriage return, line
  299.                     feed) sequence.
  300.  
  301.                     To specify a new string, type the new character string,
  302.                     up to 5 characters in length. Unprintable characters
  303.                     are specified as a control sequence, using a carat (^)
  304.                     as shown in figure 1. Figure 1 specifies CR-LF as the
  305.                     EOR string. For example, to use escape as one of the
  306.                     characters, you would specify ^]. You may use any set
  307.                     of 5 characters, with the exception of NULL or any of
  308.                     the extended ASCII characters.
  309.  
  310.           LOG-      Although SPC uses default names of SPC1.LOG and
  311.                     SPC2.LOG for COM1 and COM2 respectively, you may wish
  312.                     to use other names, or place the log file in other than
  313.                     the default directory. If you wish to specify a
  314.                     different name or path, use the LOG parameter and
  315.                     specify a new name, following normal file naming
  316.                     conventions.
  317.  
  318.  
  319.           6  COMMAND LINE ARGUMENTS
  320.  
  321.  
  322.           Version 3 of SPC uses a minimum of command line arguments.
  323.           Command line arguments are preceded by a dash (-), and may be
  324.           either lower or upper case.  The general form of the command line
  325.           is:
  326.  
  327.                     SPC [-a] [-f1<pathname>] [-f2<pathname>] [-u]
  328.  
  329.  
  330.                -a   (audible). Valid only when initially loading SPC.
  331.                     Produce an pleasing audible tone whenever SPC logs
  332.                     information, regardless of the ports in use.
  333.  
  334.                -f1<pathname>
  335.                -f2<pathname>
  336.                     These arguments allow you to rename the current log
  337.                     file for port 1 (-f1) and port 2 (-f2) while SPC is
  338.                     loaded and running. The current log file will be
  339.                     renamed to the name you specify, and a new log file
  340.                     will be created when SPC has to log information. Please
  341.                     bear in mind that if you rename the log file in this
  342.                     manner that it is your responsibility to remove the
  343.                     renamed file.
  344.  
  345.  
  346.  
  347.  
  348.  
  349.               Copyright (c) 1991-1992, Information Technology, Ltd.   5
  350.  
  351.  
  352.                                  LiteSPC Version 3.0
  353.  
  354.  
  355.  
  356.                -u   (unload). Valid only when SPC is loaded. Forces SPC to
  357.                     dump any remaining information to the log file,
  358.                     terminate, and release its memory.
  359.  
  360.           SPC will not accept incorrect combinations of command line
  361.           arguments. If SPC detects an error, it will display a usage
  362.           message and terminate immediately.
  363.  
  364.  
  365.           7  NOTES AND WARNINGS
  366.  
  367.  
  368.              1.  SPC will support baud rates up to 115200 baud. However,
  369.                  your success at higher speeds depends, in part, on your
  370.                  particular system. Do not, for example, expect a PC-XT
  371.                  class system to perform well at baud rates above 9600.
  372.  
  373.              2.  When SPC logs information to its log file, you may
  374.                  experience a momentary delay in what you are doing on your
  375.                  system. This is most noticeable if you are typing at the
  376.                  keyboard. It may appear that, for a brief time, the
  377.                  characters you are typing are not being recognized. BE
  378.                  PATIENT, they will appear. This delay is expected and
  379.                  should not be cause for concern.
  380.  
  381.              3.  If you are using SPC to monitor 1  or more ports with very
  382.                  high activity, it is possible that your system may appear
  383.                  to lock up. This is because SPC activates any time that it
  384.                  recognizes incoming information. To free the system, you
  385.                  must remove or disable the source of the information. To
  386.                  avoid this problem, operate SPC at a lower baud rate, if
  387.                  possible, or attempt to adjust the sending rate of the
  388.                  device(s) that SPC is monitoring.
  389.  
  390.              4.  If you are using SPC to monitor 2 ports, it will perform
  391.                  best if both ports are operating at the same speed. If you
  392.                  cannot adjust the speed of the sending devices to create a
  393.                  balanced situation, we recommend that the higher speed
  394.                  device be connected to COM2. By using this approach, you
  395.                  will guarantee that SPC will always service COM1 and COM2
  396.                  in that order, lessening that chance of information from
  397.                  the slower device being lost.
  398.  
  399.              5.  If you have multiple TSR's loaded on your system, SPC will
  400.                  NOT unload until any TSR's loaded after SPC have been
  401.                  unloaded. If you attempt to unload SPC with other TSR's
  402.                  loaded, SPC will cease to capture information, but it will
  403.                  not remove itself from memory until the time is right.
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.               Copyright (c) 1991-1992, Information Technology, Ltd.   6
  414.  
  415.  
  416.                                  LiteSPC Version 3.0
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.                                         Index
  427.  
  428.  
  429.                  B                           M
  430.                  baud 6                      memory 2
  431.                  baud rate 4
  432.                                              P
  433.                  C                           parity 4
  434.                  configuration file 3        port 1, 2, 4
  435.                  control sequence 5
  436.                  COPY 2                      R
  437.                  CTRL-Z 2                    rename 5
  438.                                              rules 3
  439.                  D
  440.                  delay 6                     S
  441.                  device 6                    sequence 4
  442.                                              serial 1
  443.                  K                           spaces 4
  444.                  keyword 3                   SPC.CFG 3
  445.  
  446.                  L                           T
  447.                  lock up 6                   telephone 1
  448.                  log 2, 5, 6                 text editor 3
  449.                  log file 5                  TSR 1, 6
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.               Copyright (c) 1991-1992, Information Technology, Ltd.   7
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.                                     Contents
  491.  
  492.  
  493.                   1  INTRODUCTION  . . . . . . . . . . . . . . . . . 1
  494.                   2  FEATURES OF LiteSPC 3.0 . . . . . . . . . . . . 2
  495.                   3  INSTALLING SPC  . . . . . . . . . . . . . . . . 2
  496.                   4  CREATING THE CONFIGURATION FILE . . . . . . . . 3
  497.                   5  PARAMETER VALUES  . . . . . . . . . . . . . . . 4
  498.                   6  COMMAND LINE ARGUMENTS  . . . . . . . . . . . . 5
  499.                   7  NOTES AND WARNINGS  . . . . . . . . . . . . . . 6
  500.  
  501.                Index                                                 7
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.                                           i
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.                                          ii
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.                                     Figures
  619.  
  620.  
  621.                Figure 1: Sample SPC.CFG parameters . . . . . . . . . 3
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.                                          iii
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.                                          iv
  734.  
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.                                      Tables
  747.  
  748.  
  749.                Table 1: Parameter Rules  . . . . . . . . . . . . . . 4
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.                                           v
  798.